package main

import (
	"gitee.com/zr233/glog2"
	"github.com/sirupsen/logrus"
	"time"
)

func main() {
	logrus.SetLevel(logrus.DebugLevel)
	c := glog2.New("test")
	c.SetZK("192.168.0.14:2181")

	i := 0
	for true {
		time.Sleep(time.Second * 1)
		logrus.Infof("test: %d", i)
		i++
	}

	time.Sleep(time.Minute * 10)
}
